package cn.gailvlun.gll.mgr;

import com.alibaba.sdk.android.oss.model.OSSRequest;
import com.alibaba.sdk.android.oss.model.OSSResult;
import com.alibaba.sdk.android.oss.model.PutObjectRequest;
import com.alibaba.sdk.android.oss.model.PutObjectResult;



public class UploadResult<T1 extends OSSRequest, T2 extends OSSResult> {

    public UploadResult(T1 request, T2 response) {
        this.request = request;
        this.response = response;
    }

    private T1 request;
    private T2 response;

    public T1 getRequest() {
        return request;
    }

    public void setRequest(T1 request) {
        this.request = request;
    }

    public T2 getResponse() {
        return response;
    }

    public void setResponse(T2 response) {
        this.response = response;
    }

    public static <T1 extends PutObjectRequest, T2 extends PutObjectResult> UploadResult<T1, T2> create(T1 req, T2 res) {
        return new UploadResult<>(req, res);
    }
}
